<div class="container w-full w-auto-xs font-chinese" ng-controller="SigninFormController" ng-init="app.settings.container = false;">
    <a href class="navbar-brand block m-t">{{app.name}}</a>
    <div class="row clearfix m-t-md">
        <div class="col-md-4 column"></div>
        <div class="col-md-4 column">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form class="form-horizontal form-validation" role="form" name="form">
                        <div class="form-group" ng-class="{true:'has-error',false:''}[form.username.$dirty && form.username.$invalid]">
                            <div class="col-sm-12 ">
                                <input name="username" type="text" class="form-control" placeholder="请输入注册手机号" ng-model="user.username" ng-pattern="/^1[34578]\d{9}$/" required />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12 ">
                                <input name="password" type="password" class="form-control" placeholder="请输入登录密码"  ng-model="user.password"  required />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-6">
                                <input name="verifyCode" type="text" class="form-control" placeholder="请输入验证码" ng-model="user.verifyCode" required />
                            </div>
                            <div class="col-sm-6" style="overflow: hidden">
                                <img class="img-rounded" src="{{app.baseUrl}}{{codeurl}}" ng-click="refreshCaptcha()" style="max-height: 34px;" />
                            </div>
                        </div>
                        <div class="form-group text-danger-dk" ng-show="errInfo">
                            <div class="col-sm-12">
                                <span class="form-control-static" >{{errInfo}}</span>
                            </div>
                        </div>
                        <div class="form-group ">
                            <div class="col-sm-12">
                                <div class="checkbox col-sm-6">
                                    <label><input ng-model="user.rememberMe" type="checkbox" />自动登录</label>
                                </div>
                                <span class="form-control-static col-sm-6 text-u-l cusor-pointer" ui-sref="access.forgotpwd">忘记密码？</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-6">
                                <button type="button" class="btn btn-lg btn-primary btn-block" ui-sref="access.signup">注册</button>
                            </div>
                            <div class="col-sm-6">
                                <button type="submit" class="btn btn-lg btn-primary btn-block" ng-click="login()"  ng-disabled='form.$invalid'>立即登录</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="col-md-4 column"></div>
    </div>
    <div class="row">
        <div class=""></div>
    </div>


    <!--<div class="container m-b-lg w-xxl w-auto-xs">
        <div class="wrapper text-center">
            <strong>欢迎登陆</strong>
        </div>
        <form name="form" class="form-validation">
            <div class="text-danger wrapper text-center" ng-show="authError">
                {{authError}}
            </div>
            <div class= "list-group list-group-sm">
                <div class="form-group" >
                    <input name="username" type="text" class="form-control" placeholder="请输入注册手机号" ng-model="user.name" ng-pattern="/^1[34578]\d{9}$/" required >
                </div>
                <div class="form-group">
                    <input name="password" type="password" class="form-control" placeholder="请输入登录密码" ng-model="user.password"  required >
                </div>
                <span></span>
            </div>
            <button type="submit" class="btn btn-lg btn-primary btn-block" ng-click="login()"
                    ng-disabled='form.$invalid'>Log in
            </button>
            <div class="text-center m-t m-b"><a ui-sref="access.forgotpwd">Forgot password?</a></div>
            <div class="line line-dashed"></div>
            <p class="text-center">
                <small>Do not have an account?</small>
            </p>
            <a ui-sref="access.signup" class="btn btn-lg btn-default btn-block">Create an account</a>
        </form>
    </div>-->
    <div class="text-center" ng-include="'tpl/blocks/page_footer.html'"></div>
</div>